package com.fzg.common.demo.stream;

import cn.hutool.core.io.FileTypeUtil;
import cn.hutool.core.io.FileUtil;
import lombok.extern.slf4j.Slf4j;

import java.io.File;

/**
 * create by fzg
 * 2022/12/12 10:42
 */

@Slf4j
public class CheckFileType {

    public static void main(String[] args) {
        File file = FileUtil.file("C:\\Users\\Asus\\Desktop\\temp\\d.txt");
        String type = FileTypeUtil.getType(file);
        log.info(type);
    }

}
